package health.lm.com.mine.present;


import com.blankj.utilcode.util.StringUtils;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.data.HttpCST;
import health.lm.com.mine.activity.PutForwardActivity;
import health.lm.com.mine.entity.PutForwardBean;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 提现
 */

public class PutForwardPresenter extends XPresent<PutForwardActivity> {
    public void getInfo() {
//        PutForwardBean bean = new PutForwardBean();
//        bean.setBankid("1");
//        bean.setBankname("731267550@qq.com");
//        bean.setMoney("2000");
//        getV().getInfoSuccess(bean);
//        MineModel.getInstance().putForwardBank(moudle, inter, new SimpleCallBack<PutForwardBean>() {
//            @Override
//            public void onSuccess(PutForwardBean putForwardBean) {
//                if (hasV()) {
//                    getV().getInfoSuccess(putForwardBean);
//                }
//            }
//
//        });
    }

    public void putForward(String type, String account, String name, String money) {
        MineModel.getInstance().putForward(type, account, name, money, new SimpleCallBack<Object>() {
            @Override
            public void onSuccess(Object o) {
                if (hasV()) {
                    getV().puforwardSuccess();
                }
            }

        });

    }
}
